CXX=g++
SRC=src/plam.cc src/c_solution.cc src/warehouse.cc src/bound.cc src/variable.cc src/constraint.cc src/problem.cc src/objective_function.cc
EXE=plam

CPPFLAGS=-W -Wall -lglpk -g -ggdb

all :	$(EXE)

#check : all
#	(cd test/; ./test.sh)

$(EXE):	$(SRC:.cc=.o)
	$(CXX) $(CPPFLAGS) $(INC) -o $(EXE) $^

%.o :	%.cc $(HEADERS)
	$(CXX) $(CPPFLAGS) $(INC) -c -o $@ $<

clean :
	rm -rf *.o **/*.o *~ **/*~ *# **/*#

distclean : clean
	rm $(EXE)